Script: --on windowEvent wdID,wdName,objNo,objName,objValue¬¬if objValue="Open" then¬ get licenseCheck()¬ wsSend wdID,"1","GetBGFieldText"¬ wsSend wdID,"2","GetBGFieldText"¬ ¬else if objValue="Close" then¬ put i1_Text of window wdName into editText¬ put i2_Text of window wdName into holdText¬ if editText ≠ holdText then¬ answer "Save changes before closing?" with "No" or "Yes"¬ if it is "Yes" then¬ wsSend wdID,"1","SetBGFieldText"¬ get wsGet(wdID,"1","Name")¬ send closeField to fld it¬ end if¬ end if¬ ¬else if objValue="Suspend" then ¬ ¬else if objValue="Resume" then ¬ ¬else if objValue="CloseBox" then ¬ ¬else if objValue="ZoomBox" then ¬ ¬else if objValue="GrowBox" then ¬ ¬else if objValue="TitleBar" then ¬ ¬end if¬¬--end windowEvent¬¬¬¬¬
Params: i0_Name¬i1_Name¬i2_Name
ItemType: TEXT
Rect: -1,-1,317,195
TextFont: Geneva
AutoSize: FALSE
GrowItem: TRUE
Name: theText
WhiteColor: -13108,-1,-1
Scrolling: TRUE
StyleRun: 0,1;Geneva;9;Plain;0,0,0
Selection: 0,32767
Balloon: Text can be edited only when it is unlocked. Supports RTF (rich text format) in the display mode. Does not support RTF in the edit mode.
ItemType: TEXT
Rect: 107,123,111,139
TextFont: Geneva
Visible: FALSE
Name: theText Holding
StyleRun: 0,1;Geneva;9;Plain;0,0,0
Selection: 0,32767
ItemType: CHK
Rect: 0,199,65,211
TextFont: Geneva
TextSize: 9
Name: LockText
Hilite: TRUE
Balloon: Lock or unlock current display.
Script: set i1_LockText of window wdName to objValue¬
ItemType: PUSH
Rect: 190,197,270,213
TextFont: Geneva
TextSize: 9
Name: OK
AutoClose: TRUE
Balloon: Click on this button to close the current window.
ItemType: PUSH
Rect: 90,197,170,213
TextFont: Geneva
TextSize: 9
Name: Save Now
Balloon: Click on this button to save the contents of current window now.
Script: wsSend wdID,"1","SetBGFieldText"¬wsSend wdID,"2","GetBGFieldText"¬get wsGet(wdID,"1","Name")¬send closeField to fld it